﻿using KinonekoSoftware.Extensions.Strings.SearchModels;

namespace KinonekoSoftware.ArkSpark.Services.Highlighting
{
    public interface IHighlightVisualFactory<TVisual, TData> 
        where TVisual : class
        where TData : class
    {
        /// <summary>
        /// 构建高亮元素。
        /// </summary>
        /// <param name="context"></param>
        /// <param name="results"></param>
        void BuildHighlightVisuals(HighlightContext<TVisual, TData> context, IList<MatchResult<TData>> results);
    }
}